<?php
class Zend_View_Helper_showTableProductOption {

    public function showTableProductOption($view) {
        
        $arrProductOption = $view->arrProductOption; 
        $strHtml = '';
        $strHtml .= '<table class="hovertable">';
        $strHtml .= '<tr>';
        $strHtml .= '<th>Giá trị</th>';
        $strHtml .= '<th>Thao tác</th>';
        $strHtml .= '</tr>';
        if(isset($arrProductOption))
        foreach ($arrProductOption as $ProductOption) {
            
            $strHtml .= '<tr id="tablerow">';
            $strHtml .= '<td>'. $ProductOption->product_option_name.'</td>';
            $strHtml .= '<td><a class="icon-1" href="'.$view->baseUrl().'/productoption/edit/id/'.$ProductOption->product_option_id.'"/>
                             <a class="icon-2" href="'.$view->baseUrl().'/productoption/delete/id/'.$ProductOption->product_option_id.'"/></td>';

            $strHtml .= '</tr>';
        }
        
        $strHtml .= '</table>';
        return $strHtml ;
    }
}